<div class="row">
    <div class="col-xs-12">
        <div class="box box-primary">
            <div class="box-header">
                <h3 class="box-title">会员管理</h3>
                <div class="box-tools">

                    <div class="input-group input-group-sm" style="width: 300px;">
                        <form>
                        <input type="text" name="table_search" class="form-control pull-right " placeholder="家长姓名或电话">
                        </form>
                        <div class="input-group-btn">
                            <button type="button" class="btn btn-default" data-url="{{ url('/admin/users') }}" onclick="postfun(this)" style="margin-right: 10px"><i class="fa fa-search"></i></button>
                            <button class="btn btn-success" data-url="{{ url('/admin/users/create') }}" onclick="jumpfun(this)">添加</button>
                        </div>
                    </div>

                </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
                <table class="table table-hover">
                    <tr>
                        <th>ID</th>
                        <th>会员名</th>
                        <th>电话</th>
                        <th>邮箱</th>
                        <th>地址</th>
                        <th>创建时间</th>
                        <th>备注</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    @foreach($users as $user)
                    <tr>
                        <td>{{ $user->id }}</td>
                        <td><a href="javascript:void(0)" data-url="{{ url('/admin/users', $user->id) }}" onclick="jumpfun(this)"> {{ $user->name }}</a></td>
                        <td>{{ $user->mobile }}</td>
                        <td>{{ $user->email }}</td>
                        <td>{{ $user->address }}</td>
                        <td>{{ $user->created_at }}</td>
                        <td>{{ $user->remarks }}</td>
                        <td id="status">{!! $user->status?'<span class="label label-success">正常</span>':'<span class="label label-danger">失效</span>' !!}</td>
                        <td>
                            <a style="margin:3px;" href="javascript:void(0)" data-url="{{ url('/admin/users', $user->id) }}" onclick="jumpfun(this)" class="X-Small btn-xs text-primary "><i class="fa fa-eye"></i> 查看</a>
                            <a id="statusa" style="margin:3px;" href="javascript:void(0)" data-url="{{ url('/admin/users', $user->id) }}" onclick="changefun(this)" class="X-Small btn-xs text-danger ">{!! $user->status?'<i class="fa fa-remove"></i> 失效':'<i class="fa fa-check-circle"></i> 恢复' !!}</a>
                        </td>
                    </tr>
                    @endforeach
                </table>
            </div>
            <div class="box-footer clearfix">
                <ul class="pagination pagination-sm no-margin pull-right">
                    {!! $users->links('vendor.pagination.pages') !!}
                </ul>
            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </div>
</div>